# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=tree-sitter-c-sharp
pkgver=0.23.0
pkgrel=0
pkgdesc="C# Grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-c-sharp"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="$pkgname-$pkgver.tar.gz::https://github.com/tree-sitter/tree-sitter-c-sharp/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
998d15ac285f000bc96227853933f7518ce6250dbb04cf44f7859be8dd29226ca1340e46aac51f3ef7b9d8bca385bd88001789081801bf4a8428ee5195064a5d  tree-sitter-c-sharp-0.23.0.tar.gz
"
